import request from '@/utils/request'

export function getDict() {
  return request({
    url: '/system/rules/metadataRules/queryDict',
    method: 'get'
  })
}

export function getDictOne() {
  return request({
    url: '/system/rules/metadataRules/queryDictOne',
    method: 'get'
  })
}

export function fetchmetadataRulesList(data) {
  return request({
    url: '/system/rules/metadataRules/list',
    method: 'post',
    data
  })
}

export function getmetadataRules(id) {
  return request({
    url: '/system/rules/metadataRules/detail/' + id,
    method: 'get'
  })
}

export function createmetadataRules(data) {
  return request({
    url: '/system/rules/metadataRules/add',
    method: 'post',
    data
  })
}

export function updatemetadataRules(data) {
  return request({
    url: '/system/rules/metadataRules/update',
    method: 'post',
    data
  })
}

export function deletemetadataRules(ids) {
  return request({
    url: '/system/rules/metadataRules/delete',
    method: 'post',
    data: { ids }
  })
}

export function exportmetadataRules(data) {
  return request({
    url: '/system/rules/metadataRules/export',
    method: 'post',
    data
  })
}
